using System;
using System.Text;

using Tino.Core.Data;

namespace Tino.Core
{
    class TaggedEntry : ISqliteTable
    {
        #region ISqliteTable Members

        public void CreateTable()
        {
            StringBuilder sb = new StringBuilder("CREATE TABLE [TaggedEntry] ( ");
            sb.Append("ID INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, ");
            sb.Append("EntryID INTEGER NOT NULL, ");
            sb.Append("TagID INTEGER NOT NULL)");

            SqliteAdapter.Get().ExecuteNonQuery(sb.ToString());
        }

        #endregion
    }
}
